<%@ page contentType="text/html;charset=UTF-8" %>
<form action="${pageContext.request.contextPath}/login" method="post">
    <div>用户名：<input type="text" name="username"></div>
    <div>密码：<input type="password" name="password"></div>
    <c:if test="${param.error == '1'}">
        <div style="color: red;">用户名或密码错误</div>
    </c:if>
    <button type="submit">登录</button>
</form>